Skip to content

feat: keep backwards compatibility with SSL_CERT_FILE without requiring --native-tls#2401

Merged
charliermarsh merged 4 commits intoastral-sh:mainfrom
samypr100:backwards-compat-ssl-cert-file
Mar 13, 2024
Merged

feat: keep backwards compatibility with SSL_CERT_FILE without requiring --native-tls#2401
charliermarsh merged 4 commits intoastral-sh:mainfrom
samypr100:backwards-compat-ssl-cert-file

Conversation

@samypr100
Copy link
Copy Markdown
Collaborator

@samypr100 samypr100 commented Mar 13, 2024

Summary

Small follow up to #2362 to check if SSL_CERT_FILE is set to enable --native-tls functionality. This maintains backwards compatibility with 0.1.17 and below users leveraging only SSL_CERT_FILE.

Closes #2400

Test Plan

Assuming SSL_CERT_FILE is already working via --native-tls, this is simply a shortcut to enable --native-tls functionality implicitly while still being able to let rustls-native-certs handle the loading of SSL_CERT_FILE instead of ourselves.

Edit: Manually tested by setting up own self-signed CA certificate bundle and set SSL_CERT_FILE to this and confirmed the loading happens without having to specify --native-tls.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respect SSL_CERT_FILE regardless of --native-tls flag

3 participants